package com.argrace.smart.callback;

import java.io.File;

public class ServerAddress {
    /**
     * 是否测试环境 false为正式
     */
    public static boolean isDebugEnvironment = false;
//    public static boolean isDebugEnvironment = true;

    // 网址组成部件
    private static final String PROTOCOL = "http://";
    private static String HOST;
    private static String PORT;

    public static String DINGXIANG_PRE = "https://ask.dxy.com/open/i/platform/";

    static {
        if (isDebugEnvironment) {


            // 外网测试开发
//            HOST = "223.4.113.145";
//            PORT = "";//:80


//内网
//            HOST = "10.1.8.137";
//            PORT = ":89";//


            //岳
            HOST = "192.168.1.4";
            PORT = ":80";//

        } else {
            // http://api.jiawoclub.com 正式
            HOST = "api.ujia.ren";
            PORT = "";
        }

    }

    /**
     * 前缀
     */
    public static final String PRF = PROTOCOL + HOST + PORT
            + File.separator;// 外网地址


    // ********************** wenhaiju add start ***************************//
    /***
     * 丁香医生
     */

    public static final String DX_QUESTION = PRF + "LW/question.ashx";


    /**
     *
     */

    /**
     * 登录-注册-修改密码
     */
    public static final String USER_ASHX = PRF + "User.ashx";

    /**
     * 家庭
     */
    public static final String FAMILY_ASHX = PRF + "NewFamily.ashx";

    /**
     * 纪念日
     */

    public static final String TASK_ASHX = PRF + "Task.ashx";

    public static final String BANNER_INDEX = PRF + "Index.ashx";

    public static final String NEW_FAMILY_ASHX = PRF + "NewFamily.ashx";


    /**
     * 广场
     */
    public static final String SERVICE_PUBLIC_ASHX = PRF + "Service/Public.ashx";

    /**
     * 系统消息
     */
    public static final String SERVICE_SYSMSG = PRF + "Service/SysMsg.ashx";
    /**
     * 有爱首页
     */
    public static final String SERVICE_ULOVE_ASHX = PRF + "Service/Ulove.ashx";


    /**
     * 订单
     */
    public static final String SERVICE_ORDERS_ASHX = PRF + "Service/Orders.ashx";
    //丁香的根据订单号获得orederinfo
    public static final String LW_ORDER_ASHX = PRF + "LW/Order.ashx";

    /**
     * 未完成订单支付订单
     */
    public static final String PAY_PAYREQUEST_ASHX = PRF + "pay/PayRequest.ashx";
    public static String MoRenRiQi = "";
    /**
     * 手环
     */
    public static final String SERVICE_BRACELET_ASHX = PRF + "Service/Bracelet.ashx";

}
